﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        td {
            width:200px;
            text-align:center;
        }
        th {
            text-align:center;
        }
    </style>



    <asp:Button runat="server" ID="Button1" Text="添加" OnClick="Button1_Click"/>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <asp:Button ID="Button2" runat="server" Text="搜索" OnClick="Button2_Click"/>

    <asp:GridView runat="server" ID="Gv1" AutoGenerateColumns="false" OnRowEditing="Gv1_RowEditing" OnRowUpdating="Gv1_RowUpdating" OnRowDeleting="Gv1_RowDeleting" 
        OnRowCancelingEdit="Gv1_RowCancelingEdit" AllowPaging="true" OnPageIndexChanging="Gv1_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="Id"/>
            <asp:BoundField DataField="TaskName" HeaderText="任务名称"/>
            <asp:BoundField DataField="TaskContent" HeaderText="任务内容"/>
            <asp:BoundField DataField="Remarks" HeaderText="备注"/>
            <asp:ButtonField HeaderText="详情" ButtonType="Link" Text="详情" CommandName="detail"/>
            <asp:CommandField HeaderText="操作" ShowEditButton="true" ShowDeleteButton="true" ShowCancelButton="true"/>
        </Columns>
    </asp:GridView>

</asp:Content>
